#
# Be sure to run `pod lib lint ServiceCode.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ServiceCode'
  s.version          = '0.1.2'
  s.summary          = '项目服务库 包括 网络请求 router 动画 等'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
项目服务库 包括 网络请求 router 动画 等
                       DESC

  s.homepage         = 'https://gitee.com/clh2046_admin/ServiceCode'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'clh2046@163.com' => 'clh2046@163.com' }
  s.source           = { :git => 'https://gitee.com/clh2046_admin/ServiceCode.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  s.static_framework = true
  s.ios.deployment_target = '10.0'

  s.source_files = 'ServiceCode/Classes/**/*.h'
  s.public_header_files = 'Pod/Classes/**/*.h'
  
  
  # s.resource_bundles = {
  #   'ServiceCode' => ['ServiceCode/Assets/*.png']
  # }
   
  
  s.subspec 'CirclePageView' do |circlePageView|
      circlePageView.source_files = 'ServiceCode/Classes/CirclePageView/**/*'
      circlePageView.public_header_files = 'ServiceCode/Classes/CirclePageView/**/*.h'
      circlePageView.dependency 'CoreCode'
      circlePageView.dependency 'SDWebImage/GIF'
      circlePageView.dependency 'SDWebImage/WebP'
      circlePageView.dependency 'FLAnimatedImage'
  end
  
   s.subspec 'Network' do |network|
       network.source_files = 'ServiceCode/Classes/Network/**/*'
       network.public_header_files = 'ServiceCode/Classes/Network/**/*.h'
       network.dependency 'BaseCode'
       network.dependency 'AFNetworking'
       network.dependency 'BlocksKit'
       network.dependency 'JSONModel'
       network.dependency 'ReactiveObjC'
   end
   
   s.subspec 'RefreshComponent' do |refreshComponent|
       refreshComponent.source_files = 'ServiceCode/Classes/RefreshComponent/**/*'
       refreshComponent.public_header_files = 'ServiceCode/Classes/RefreshComponent/**/*.h'
       refreshComponent.dependency 'MJRefresh'
       refreshComponent.dependency 'lottie-ios','2.5.3'
       refreshComponent.dependency 'CoreCode/String'
       refreshComponent.resource_bundles = {
         'RefreshComponentResources' => ['ServiceCode/Assets/RefreshComponent/*.json']
       }
   end
   
   s.subspec 'Router' do |router|
       router.source_files = 'ServiceCode/Classes/Router/**/*'
       router.public_header_files = 'ServiceCode/Classes/Router/**/*.h'
       router.dependency 'BaseCode'
       router.dependency 'BlocksKit'
   end
   
   s.subspec 'TransitionAnimation' do |transitionAnimation|
       transitionAnimation.source_files = 'ServiceCode/Classes/TransitionAnimation/**/*'
       transitionAnimation.public_header_files = 'ServiceCode/Classes/TransitionAnimation/**/*.h'
   end
   s.subspec 'UserInterfaceMagager' do |userInterfaceMagager|
       userInterfaceMagager.source_files = 'ServiceCode/Classes/UserInterfaceMagager/**/*.swift'
       userInterfaceMagager.public_header_files = 'ServiceCode/Classes/UserInterfaceMagager/**/*.h'
   end
   
   
end
